package homework;

import java.util.Scanner;

public class Run {
    public static void main(String[] args) throws Exception {



        homework.HomeWorkStudentSystem homeWorkStudentTestSystem = new homework.HomeWorkStudentSystem();
        homeWorkStudentTestSystem.logon();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你要进行的业务");
        System.out.println("查询请输入1");
        System.out.println("添加请输入2");
        System.out.println("更新请输入3");
        System.out.println("删除请输入4");


        int a = scanner.nextInt();

            switch (a) {

                case 1:


                    homeWorkStudentTestSystem.selectData();
                    break; // 可选
                case 2:


                    homeWorkStudentTestSystem.insert();
                    break; // 可选
                // 可以有更多的case子句
                case 3:


                    break;
                case 4:

                    homeWorkStudentTestSystem.deleteDb();

                case 5:





                    break;



            }









//        HomeWorkStudentSystem homeWorkStudentSystem = new HomeWorkStudentSystem();
//        homeWorkStudentSystem.deleteDb();
//        homeWorkStudentSystem.insert();
//
//
//        homeWorkStudentSystem.selectData();

    }}
